package com.qububu.share.article.dto;

import java.io.Serializable;

import com.qububu.utils.SystemUtil;


public class ArticleInfoDto implements Serializable{
	
	private static final long serialVersionUID = 1L;
	private String articleId;
	private String articleTitle;
	private String articleText;
	private String articleSummaryText;
	private String artSummaryPicUrl;
	private int articleCreateDttm;
	private String articleCreateIp;
	private int articleType;
	private String userId;
	
	/**
	 *  得到加密的articleId, userId
	 */
	public ArticleInfoDto(String articleId, String userId){
		this.articleId = articleId;
		this.userId = userId;
	}
	
	/**
	 *  得到未加密的articleId, userId
	 */
	public ArticleInfoDto(long articleId, long userId){
		this.articleId = SystemUtil.encrypt(String.valueOf(articleId));
		this.userId = SystemUtil.encrypt(String.valueOf(userId));
	}
	
	public String getArticleId() {
		return articleId;
	}
	
	public String getArticleTitle() {
		return articleTitle;
	}
	
	public void setArticleTitle(String articleTitle) {
		this.articleTitle = articleTitle;
	}
	
	public String getArticleText() {
		return articleText;
	}
	
	public void setArticleText(String articleText) {
		this.articleText = articleText; 
	}
	
	public String getArticleSummaryText() {
		return articleSummaryText;
	}
	
	public void setArticleSummaryText(String articleSummaryText) {
		this.articleSummaryText = articleSummaryText;
	}
	
	public String getArtSummaryPicUrl() {
		return artSummaryPicUrl;
	}
	
	public void setArtSummaryPicUrl(String artSummaryPicUrl) {
		this.artSummaryPicUrl = artSummaryPicUrl;
	}
	
	public int getArticleCreateDttm() {
		return articleCreateDttm;
	}
	
	public void setArticleCreateDttm(int articleCreateDttm) {
		this.articleCreateDttm = articleCreateDttm;
	}
	
	public String getArticleCreateIp() {
		return articleCreateIp;
	}
	
	public void setArticleCreateIp(String articleCreateIp) {
		this.articleCreateIp = articleCreateIp;
	}
	
	public int getArticleType() {
		return articleType;
	}
	
	public void setArticleType(int articleType) {
		this.articleType = articleType;
	}
	
	public String getUserId() {
		return userId;
	}
}
